import Vue from 'vue'
import router from './router'
import ElementUi from 'element-ui'
import axios from 'axios'

import 'element-ui/lib/theme-chalk/index.css';
import '@/assets/icon/iconfont.css'
import App from './App.vue'


//Vue.config.productionTip = false
// Vue.prototype.ApiHost = 'http://127.0.0.1:8081';
// Vue.prototype.WebsocketHost = 'ws://127.0.0.1:8081';
Vue.prototype.ApiHost = 'https://gofly.v1kf.com';
Vue.prototype.WebsocketHost = 'wss://gofly.v1kf.com';
Vue.prototype.ApiHost = 'https://chat.elf.com.tw';
Vue.prototype.WebsocketHost = 'wss://chat.elf.com.tw';
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
Vue.prototype.$axios= axios;

Vue.use(ElementUi)

const app = new Vue({
	render: h => h(App),
	router
}).$mount('#app')